package com.hooper.hospital.common.utils;

import javax.xml.ws.RequestWrapper;
import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2022/10/08/19:21
 */
public class ObjectUtils {

    public static boolean isNull(Object obj) {
        return obj == null;
    }


    public static boolean isNotNull(Object obj) {
        return !isNull(obj);
    }

    public static boolean isAnyNull(Object... objs) {
        if (isNull(objs)) {
            return true;
        }
        for (Object o : objs) {
            if (isNull(o)) {
                return true;
            }
        }
        return false;
    }
}
